<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta name="wap-font-scale" content="no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title></title>
<meta name="keywords" content="e校园">
<meta name="description" content="e校园">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="list-box school-con"> 
	<div id="null-box"></div>	
	<ul id="news"></ul>
</div>
<script src="script/jquery.min.js"></script>
<script type="text/javascript" src="script/swiper.min.js"></script>
<script type="text/javascript" src="script/jquery.lazyload.js"></script>
<script src="script/crypto-js.js"></script>
<script src="script/md5.js" type="text/javascript"></script> 
<script type="text/javascript" src="script/common.js"></script>
<script type="text/javascript" src="script/myAjax.js"></script>
<script>		
		function init() {
			try {
				// console.log(12);
				window.vipObj = vipObj; // 全局下面设置vipObj 方法
			} catch (error) {
				// 
			}
		}
		init();
		var initTitle = function () {
				// console.log(getQueryString('cateName'))
				if(getQueryString('cateName')) {
					document.title = getQueryString('cateName');
				}
				else {
					document.title = '栏目列表';
				}
		};
	    
		function setListHtml(data){
			if(!data.list.length){//空空如也
				var info=$('<p class="null-img"></p><span class="text">数据正在创建中...</span>');
				$('#null-box').append(info);  
			}else{
				$.each(data.list,function(i,items){
					var title = items.sName,
					data_id = items.pId,
					data_type = items.sShowType, //展示类型  0是链接  1是自定义内容
					update = items.sCreateTime,
					imgpath = items.sPic;
					var info = $('<li class="clearfix" data-articleId="'+data_id+'" data-type="'+data_type+'" ><div class="align-s" ><img alt="" src="images/grey.gif" class="lazy" data-original="'+imgpath+'" ></div><section><p>'+title+'</p><span>'+update+'</span></section></li>').on('click', function(){
						if(data_type=='1'){
							// console.log(items)
							jumpPage(data_id);
						}else{
							window.location.href=items.sLink;
						}
						if(window.vipObj) {
							window.vipObj.getColumnItemTitle(title);
						}
					});
					$('#news').append(info);  
				});
			}
			$('img.lazy').lazyload({ threshold :50 });	
		}

		$(function () {
			
			var page = 1, rows = 10, schoolId = window.location.href.queryURLParameter('schoolId').schoolId, typeId = window.location.href.queryURLParameter('cateId').cateId;
			scrollEvent(page, rows, schoolId, typeId);
			if (window.vipObj) {
				window.vipObj.getClickItemData("{cateName:" + getQueryString('cateName') + "}")
			}
		});

		window.onload = function() {
			initTitle();
		}

		/* wxshare 微信分享
			getNoteName();
			document.title = noteName;
			$.ajax({
					type: "get",
					async: true,
					url:"http://test.juziwl.com/zsh/users/wxshare",
					dataType: "json",
					success:function(response){
						var jsapi_ticket="jsapi_ticket="+response.data.jsapi_ticket+"&noncestr="+response.data.noncestr+"&timestamp="+response.data.timestamp+"&url="+location.href.split('#')[0];
						var signature=hex_sha1(jsapi_ticket);
						wx.config({
							debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
							appId: response.data.appid, // 必填，公众号的唯一标识
							timestamp:parseInt(response.data.timestamp), // 必填，生成签名的时间戳
							nonceStr: response.data.noncestr, // 必填，生成签名的随机串
							signature: signature,// 必填，签名，见附录1
							jsApiList: ['onMenuShareTimeline',
							'onMenuShareAppMessage'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
						});
					}	
			});
			
			wx.ready(function() {
				//分享朋友圈
				wx.onMenuShareTimeline({
					title:document.title, // 分享标题
					link:location.href.split("#")[0],
					imgUrl:'http://v.juziwl.com/view/wap/images/1.png'
				});
				//分享给微信好友
				wx.onMenuShareAppMessage({
					title:document.title, // 分享标题
					desc:$('#news').text(),//分享描述
					link:location.href.split("#")[0],
					imgUrl:'http://v.juziwl.com/view/wap/images/1.png'
				});
			})
			// wxshare 微信分享 end
	    */	
			
</script>
</body>
</html>